#include <stdio.h>
#include <string.h>

int main(){
	struct student{
		int num;
		char name[20];
		struct student* next;
	};
	struct student a,b,c,*p,*head;
	a.num = 100;strcpy(a.name,"donk");
	b.num = 201;strcpy(b.name,"s1mple");
	c.num = 360;strcpy(c.name,"peek");
	head = &a;p = head;
	a.next = &b;
	b.next = &c;
	c.next = NULL; 
	if(head==NULL){
		printf("empty");
	
	}else{
		do{
		printf("%d\t%s\n",p->num,p->name);
		p = p->next;
	}while(p!=NULL);
	}
	
	
}
